package com.tao.service.impl;


import com.tao.common.domain.pojo.CheckApply;
import com.tao.common.domain.pojo.MedicalRecord;
import com.tao.common.domain.pojo.Register;
import com.tao.common.domain.pojo.User;
import com.tao.mapper.InspectionApplicationMapper;
import com.tao.service.InspectionApplicationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class InspectionApplicationServiceImpl implements InspectionApplicationService {
    @Autowired
    private InspectionApplicationMapper dao;

    @Override
    public List<Register> initPatients(User user) {
        return dao.initPatients(user);
    }

    @Override
    public MedicalRecord initRecords(String s) {
        return dao.initRecords(s);
    }

    @Override
    public List<CheckApply> applyIsExist(MedicalRecord medicalRecord) {
        return dao.applyIsExist(medicalRecord);
    }

    @Override
    public List<CheckApply> getApply(MedicalRecord medicalRecord) {
        return dao.getApply(medicalRecord);
    }

    @Override
    public CheckApply checkApplyIsExist(CheckApply checkApply) {
        return dao.checkApplyIsExist(checkApply);
    }

    @Override
    public void insertCheckApply(CheckApply checkApply) {
        dao.insertCheckApply(checkApply);
    }

    @Override
    public void updateCheckApply(CheckApply checkApply) {
        dao.updateCheckApply(checkApply);
    }

    @Override
    public void deleteCheckApply(CheckApply checkApply) {
        dao.deleteCheckApply(checkApply);
    }

    @Override
    public List<?> initItemName() {
        return dao.initItemName();
    }

    @Override
    public void addApply(CheckApply checkApply) {
        dao.addApply(checkApply);
    }
}
